package com.tuozixuan.endpoint;

import org.springframework.boot.actuate.endpoint.annotation.Endpoint;
import org.springframework.boot.actuate.endpoint.annotation.ReadOperation;
import org.springframework.stereotype.Component;

@Endpoint(id = "myhealth")
@Component
public class LocalEndpoint {
    
    /**
     * http://localhost:8080/actuator/myhealth<br>
     */
    @ReadOperation
    public String myhealth() {
        return "ok";
    }
}
